package com.viknix.threadpool.manager.client.listener;

import java.util.concurrent.Executor;

/**
 * @Author: Dongqi
 * @Date: 2021/10/24 19:33
 * @Version 1.0
 * @Description: 动态线程池监听器，用于在服务端配置发生更新时，动态刷新该线程池的配置
 */
public interface Listener {

    /**
     * Get executor.
     *
     * @return
     */
    Executor getExecutor();

    /**
     * Receive config info.
     *
     * @param configInfo
     */
    void receiveConfigInfo(String configInfo);

}
